package com.example.administrator.logdemo_and_activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class LifeCycleActivity extends AppCompatActivity {
    private static final String LC_TAG="lIFECYCLEDEMO";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_cycle);
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onCreate.");
    }

    @Override
    protected void onDestroy() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onDestory.");
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onPause.");
        super.onPause();
    }

    @Override
    protected void onResume() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onResume.");
        super.onResume();
    }

    @Override
    protected void onRestart() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onRestart.");
        super.onRestart();
    }

    @Override
    protected void onStart() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onStart.");
        super.onStart();
    }

    @Override
    protected void onStop() {
        Log.v(LifeCycleActivity.LC_TAG,"LifeCycleActivity ---> onStop.");
        super.onStop();
    }
}
